Optimal. Leaf size=39 \[ -\frac{a \cos ^{m+1}(c+d x)}{d (m+1)}-\frac{b \cos ^m(c+d x)}{d m} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.073123, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 4, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {4377, 12, 2565, 30} \[ -\frac{a \cos ^{m+1}(c+d x)}{d (m+1)}-\frac{b \cos ^m(c+d x)}{d m} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4377
Rule 12
Rule 2565
Rule 30
Rubi steps
\begin{align*} \int \cos ^m(c+d x) (a \sin (c+d x)+b \tan (c+d x)) \, dx &=a \int \cos ^m(c+d x) \sin (c+d x) \, dx+\int b \cos ^{-1+m}(c+d x) \sin (c+d x) \, dx\\ &=b \int \cos ^{-1+m}(c+d x) \sin (c+d x) \, dx-\frac{a \operatorname{Subst}\left (\int x^m \, dx,x,\cos (c+d x)\right )}{d}\\ &=-\frac{a \cos ^{1+m}(c+d x)}{d (1+m)}-\frac{b \operatorname{Subst}\left (\int x^{-1+m} \, dx,x,\cos (c+d x)\right )}{d}\\ &=-\frac{b \cos ^m(c+d x)}{d m}-\frac{a \cos ^{1+m}(c+d x)}{d (1+m)}\\ \end{align*}
Mathematica [A] time = 0.0790838, size = 35, normalized size = 0.9 \[ -\frac{\cos ^m(c+d x) (a m \cos (c+d x)+b m+b)}{d m (m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.056, size = 40, normalized size = 1. \begin{align*} -{\frac{b \left ( \cos \left ( dx+c \right ) \right ) ^{m}}{dm}}-{\frac{a \left ( \cos \left ( dx+c \right ) \right ) ^{1+m}}{d \left ( 1+m \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.495067, size = 81, normalized size = 2.08 \begin{align*} -\frac{{\left (a m \cos \left (d x + c\right ) + b m + b\right )} \cos \left (d x + c\right )^{m}}{d m^{2} + d m} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a \sin{\left (c + d x \right )} + b \tan{\left (c + d x \right )}\right ) \cos ^{m}{\left (c + d x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (d x + c\right ) + b \tan \left (d x + c\right )\right )} \cos \left (d x + c\right )^{m}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]